@import '~@alife/aisc-core/purple/scss/index.scss';
// 为了使 anchor 点击后不被Aone吊顶挡住，所以这么写
.has-aonel-notice {
  #container {
    top: 70px;
  }
}
.aone-sidebar-fold {
  #container {
    left: 50px;
  }
}
// 面包屑样式调整 compare、commit/{{id}}、codereview页面
.aone-layout-breadcrumb-container {
  padding: 0 !important;
}

// 覆盖增减行的样式
.diff-code-delete {
  background-color: $color-error-2;
  .diff-code-edit {
    background-color: #ffcbce;
  }
}
.diff-code-image {
  background-color: rgba(230, 248, 232, 0.5) !important;
}
.diff-code-delet-image {
  background-color: rgba(250, 221, 224, 0.5) !important;
}
.diff-code-insert {
  background-color: $color-success-4;
  .diff-code-edit {
    background-color: #99f2b0;
  }
}

// 加载更多行的按钮
.load-more-lines-btns {
  text-align: center;
  .load-more-lines-btn {
    cursor: pointer;
    margin-right: 12px;
    &:last-child {
      margin-right: 0;
    }
    &:hover {
      color: $color-f4-4;
    }
    .load-more-lines-btn-icon {
      margin-right: 3px;
    }
  }
}
.load-more-lines-btn-gutter {
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  padding-top: 3px;
  &:hover {
    color: $color-b1-6;
  }
}

// 『展开更多行』的样式
.diff-hunk-header-gutter {
  background: $color-n1-4;
  color: $color-text1-2;
  border-right: 1px solid $gray-02;
  border-top: 1px solid $gray-02;
  border-bottom: 1px solid $gray-02;
}
.diff-hunk-header-content {
  color: $color-text1-2;
  padding: 4px 0 3px 6px;
  border-top: 1px solid $gray-02;
  border-bottom: 1px solid $gray-02;
  &:hover {
    background: $color-b1-2;
  }
}
.diff-hunk {
  &:first-of-type {
    .diff-hunk-header-gutter,
    .diff-hunk-header-content {
      border-top: none;
    }
  }
  &:last-child {
    .diff-hunk-header-gutter,
    .diff-hunk-header-content {
      border-bottom: none;
    }
  }
}

// TODO 以后去掉，commit和compare暂时不让gutter有cursor，cr的有cursor
.diff-line .diff-gutter {
  cursor: auto;
  user-select: text;
}

// 手动加载diff的holder
.manual-load-diff-holder {
  padding: 12px;
  text-align: center;
  cursor: pointer;
  color: $gray-06;
  font-size: 14px;
}
